# ---------------------------------------------------------------------
# Syntax hilighting utilities
# ---------------------------------------------------------------------
# Copyright (C) 2007-2020 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------


from pygments.formatters import HtmlFormatter


class NOCHtmlFormatter(HtmlFormatter):
    """
    HTML Formatter
    Returns escaped HTML text with neat line numbers
    """

    name = "NOC HTML"

    def __init__(self, **kwargs):
        kwargs["linenos"] = "table"
        super().__init__(**kwargs)
